<h1 id="pwck">pwck</h1>
<p>用来验证系统认证文件内容和格式的完整性</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>pwck命令</strong> 用来验证系统认证文件<code>/etc/passwd</code>和<code>/etc/shadow</code>的内容和格式的完整性。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">pwck(选项)(参数)</code></pre>
<h3 id="选项">选项</h3>
<pre><code class="language-bash">-q：仅报告错误信息；
-s：以用户id排序文件“/etc/passwd”和“/etc/shadow”;
-r：只读方式运行指令。</code></pre>
<h3 id="参数">参数</h3>
<ul>
<li>密码文件：指定密码文件的路径；</li>
<li>影子文件：指定影子文件的路径。</li>
</ul>
<h3 id="实例">实例</h3>
<pre><code class="language-bash">pwck /etc/passwd
user &#39;lp&#39;: directory &#39;/var/spool/lpd&#39; does not exist
user &#39;news&#39;: directory &#39;/var/spool/news&#39; does not exist
user &#39;uucp&#39;: directory &#39;/var/spool/uucp&#39; does not exist
user &#39;www-data&#39;: directory &#39;/var/www&#39; does not exist
user &#39;list&#39;: directory &#39;/var/list&#39; does not exist
user &#39;irc&#39;: directory &#39;/var/run/ircd&#39; does not exist
user &#39;gnats&#39;: directory &#39;/var/lib/gnats&#39; does not exist
user &#39;nobody&#39;: directory &#39;/nonexistent&#39; does not exist
user &#39;syslog&#39;: directory &#39;/home/syslog&#39; does not exist
user &#39;couchdb&#39;: directory &#39;/var/lib/couchdb&#39; does not exist
user &#39;speech-dispatcher&#39;: directory &#39;/var/run/speech-dispatcher&#39; does not exist
user &#39;usbmux&#39;: directory &#39;/home/usbmux&#39; does not exist
user &#39;haldaemon&#39;: directory &#39;/var/run/hald&#39; does not exist
user &#39;pulse&#39;: directory &#39;/var/run/pulse&#39; does not exist
user &#39;saned&#39;: directory &#39;/home/saned&#39; does not exist
user &#39;hplip&#39;: directory &#39;/var/run/hplip&#39; does not exist
pwck：无改变</code></pre>
<!-- Linux命令行搜索引擎：https://jaywcjlove.github.io/linux-command/ -->
